package edu.cornell.cubooks.domain;

import java.io.Serializable;

import javax.persistence.Embeddable;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;

/**
 * Primary Key used by Bid.
 * 
 * @author mpk35
 *
 */
@Embeddable
public class BidPK implements Serializable {
	
	private static final long serialVersionUID = -7208859963625912615L;
	
	@ManyToOne(fetch=FetchType.LAZY)
	private Posting posting;
	private float price;
	
	public float getPrice() {
		return price;
	}
	public void setPrice(float price) {
		this.price = price;
	}
	public Posting getPosting() {
		return posting;
	}
	public void setPosting(Posting posting) {
		this.posting = posting;
	}

}
